package exp3;

public class Exp3_5 {
	public static void main(String[] args) {
		long a = 8, s = 8;
		for (int i = 1; i < 8; i++) {
			a = a * 10 + 8;
			s = s + a;
		}
		System.out.println(s);
	}
}
